#!/bin/sh
#
# Check a few email entries, just to move the world a bit forward..
#
COUNT=${1-200}

cd ${COUNTER_ROOT-/home/counter/base}
. tools/runscript --noexec

date
echo "Checking new records"
checkemailstate --state new --count $COUNT --smtp --write --oldtoo

date
echo "Checking tempfails"
checkemailstate --state tempfail --count $COUNT --smtp --write

# recheck some bad records, just for fun
date
echo "Checking baddies"
checkemailstate --state bad --count 20 --smtp --write

# recheck a few okies, too
date
echo "Checking okies"
checkemailstate --state ok --count 20 --smtp --write

# when I hacked all oksmtp to "OK", the result is that they get
# uncovered whenever something happens to that record. Put'em back.
date
echo "Checking oksmtp"
checkemailstate --write --state oksmtp --smtp --count $COUNT --oldtoo

date


